



export const count = (state=1000,action)=>{
    const {type,payload} = action 

    switch(type){
        case "countAdd":
            return ++state;
            break;

        case "countDesc":
            return --state;
            break; 

        case "changeCount":
            return state+payload 
            break;



        default:
            return state;
            break;
    }
}